package com.vnp.cooking.adapter;

import com.vnp.cooking.fragmentKitchen.CoverCanhan1;
import com.vnp.cooking.fragmentKitchen.CoverCanhan2;
import com.vnp.cooking.fragmentKitchen.FragmentLiked;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class TabInfoKitchenAdapter extends FragmentPagerAdapter{

	public TabInfoKitchenAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int index) {
		switch (index) {
		case 0:
			return new FragmentLiked();
		case 1:
			return new CoverCanhan1();
		case 2:
			return new CoverCanhan2();
		}
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 3;
	}

}
